package com.company.zuoye;

/**
 * @author 关敬元
 * @Description  购物车类
 * @date 2019/11/28
 */
public class ShoppingCart {
    private String name;
    private Double price;
    private int num;
    private Double sumprice;

    public ShoppingCart(){}

    public ShoppingCart(String name, Double price, int num, Double sumprice) {
        this.name = name;
        this.price = price;
        this.num = num;
        this.sumprice = sumprice;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", sumprice=" + sumprice +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Double getSumprice() {
        return sumprice;
    }

    public void setSumprice(Double sumprice) {
        this.sumprice = sumprice;
    }
}
